package edu.gyc.hishiro.model;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author ls
 * @since 2020-06-21
 */
@Data
public class SysRole implements Serializable {

    private static final long serialVersionUID=1L;

    private Integer id;

    private Boolean available;

    private String description;

    private String role;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", permissions=" + permissions +
                '}';
    }

    @TableField(exist = false)
    private List<SysPermission> permissions;

}
